{extend name="public:layout" /}
{block name='title'}会员中心{/block}
{block name='head'}
<style>
    body{
        background:#ebebeb;
        padding:20px 0;
    }
</style>
{/block}
{block name="body"}
<div class="mcm-user-head">
    <div class="head-left">
        <a href="{:url('Theme/index')}" class="link">
            <span class="iconfont icon-zuoyou1"></span>
        </a>
    </div>
    <div class="head-title">
        个人中心
    </div>
    <div class="head-right">
    </div>
</div>
<div style="height: 45px;"></div>
<div class="member-head">
    <a href="{:url('userinfo')}" class="link"></a>
    <div class="thumb">
        <img src="{$memberInfo.member_avatar}" alt="">
    </div>
    <div class="member-info">
        <span class="username">{$memberInfo.member_truename}</span>
        <span class="mobile">手机：{$memberInfo.member_tel}</span>
    </div>
    <a href="javascript:;" class="qrcode" onclick="showQrcode()">
        <span class="iconfont icon-erweima-pc-off"></span>
    </a>
</div>
<div class="weui-cells member-menu">
    <a class="weui-cell weui-cell_access" href="{:url('Public/memberCard',['member_id'=>$memberInfo['member_id']])}">
        <div class="weui-cell__hd">
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-mingpian"></use>
            </svg>
        </div>
        <div class="weui-cell__bd">
                <p>我的名片</p>
        </div>
    </a>
    {notempty name="memberInfo.company_id"}
    <div class="spill"></div>
    <a class="weui-cell weui-cell_access" href="{:url('companyinfo')}">
        <div class="weui-cell__hd">
            <span class="iconfont icon-zhubanfang"></span>
        </div>
        <div class="weui-cell__bd">
            <p>公司资料</p>
        </div>
    </a>
    {/notempty}
    <div class="spill"></div>
    <a class="weui-cell weui-cell_access" href="{:url('MyCircle/contacts')}">
        <div class="weui-cell__hd">
            <span class="iconfont icon-tongxunlu1"></span>
        </div>
        <div class="weui-cell__bd">
                <p>通讯录</p>
        </div>
    </a>
    <div class="spill-crude"></div>
    <a class="weui-cell weui-cell_access" href="{:url('MyCircle/index')}">
        <div class="weui-cell__hd">
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-pengyouquan1"></use>
            </svg>
        </div>
        <div class="weui-cell__bd">
                <p>我的圈子</p>
        </div>
    </a>
    <div class="spill"></div>
    <a class="weui-cell weui-cell_access" href="{:url('theme')}">
        <div class="weui-cell__hd">
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-icon-yxj-topic"></use>
            </svg>
        </div>
        <div class="weui-cell__bd">
                <p>我的话题</p>
        </div>
    </a>
    <div class="spill"></div>
    <a class="weui-cell weui-cell_access" href="{:url('attention',['type'=>0])}">
        <div class="weui-cell__hd">
            <span class="iconfont icon-guanzhu01">
            </span>
        </div>
        <div class="weui-cell__bd">
            <p>我的关注</p>
        </div>
    </a>
    <div class="spill"></div>
    <a class="weui-cell weui-cell_access" href="{:url('attention',['type'=>1])}">
        <div class="weui-cell__hd">
            <span class="iconfont icon-guanzhu01">
            </span>
        </div>
        <div class="weui-cell__bd">
            <p>我的屏蔽</p>
        </div>
    </a>
    <div class="spill"></div>
    <a class="weui-cell weui-cell_access" href="{:url('apply')}">
        <div class="weui-cell__hd">
            <span class="iconfont icon-guanzhu01">
            </span>
        </div>
        <div class="weui-cell__bd">
            <p>我的申请</p>
        </div>
    </a>
</div>

{/block}
{block name="js"}
<script>
    function showQrcode() {
        var html="<img style='width:100%;height:auto' src='{:url("plus/Help/qrcode",['qtext'=>str_encode(url('Public/memberCard',['member_id'=>$memberInfo['member_id']],'html',true))])}'>";
        layer.open({
            title:null
            ,btn:null
            ,shade: 'background-color: rgba(0,0,0,.3)' //自定义遮罩的透明度
            ,style:'width:95vw;height:auto'
            ,content: html
        });
    }
</script>
{/block}
